package com.xjrsoft.module.interfaceManager.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 接口权限表
 * </p>
 *
 * @author tzx
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("xjr_interface_auth")
public class XjrInterfaceAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键值
     */
    @TableId("F_Id")
    private String id;

    /**
     * 接口主键值
     */
    @TableField("F_InfoId")
    private String infoId;

    /**
     * 授权对象主键值
     */
    @TableField("F_ObjectId")
    private String objectId;

    /**
     * 1-角色，2-用户
     */
    @TableField("F_ObjectType")
    private Integer objectType;

    /**
     * 创建日期
     */
    @TableField(value = "F_CreateDate",fill = FieldFill.INSERT)
    @JsonProperty(value = "F_CreateDate")
    private LocalDateTime createDate;

    /**
     * 创建用户主键
     */
    @TableField(value = "F_CreateUserId",fill = FieldFill.INSERT)
    @JsonProperty(value = "F_CreateUserId")
    private String createUserId;

    /**
     * 创建用户
     */
    @TableField(value = "F_CreateUserName",fill = FieldFill.INSERT)
    @JsonProperty(value = "F_CreateUserName")
    private String createUserName;
}
